package com.spring.cn.config;

/**
 * @author liangd
 * date 2020-11-13 09:42
 * code
 */
public class ProductBean {

    /**
     * 名称
     */
    private String name;
    /**
     * 标题
     */
    private String title;
    /**
     * 价格
     */
    private double price;
    /**
     * 市场价格
     */
    private int marketprice;

    public ProductBean(String name, String title, double price) {
        this.price = price;
        this.name = name;
        this.title = title;
    }

    public ProductBean(String name, String title, int marketprice) {
        this.name = name;
        this.title = title;
        this.marketprice = marketprice;
    }

    @Override
    public String toString() {
        return "ProductModel{" +
                "price=" + price +
                ", name='" + name + '\'' +
                ", title='" + title + '\'' +
                ", marketprice=" + marketprice +
                '}';
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getMarketprice() {
        return marketprice;
    }

    public void setMarketprice(int marketprice) {
        this.marketprice = marketprice;
    }
}
